<!-- 
 *  Copyright [2014] UW-Parkside
 * Authors: Jasmine Griffiths, Matthew Zygowicz, Armando Narvaez
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
*/
-->
<?php
print "<form id=\"editRouteForm2\" action=\"/index.php/kat/editroute/$routeNumber/$direction\" method=\"POST\">";
?>

<!-- 'hiddenEditBoxMin.php' is the sticky window when the user is editing the box -->
<!-- Fields are:  ID, Location, Day, Time, and Direction      -->
<p><strong>Add Stop</strong></p>
<hr />
<p>
    <label class="field" for="location">Location</label> 
    <input class="reducedInput" name="location" type="text" placeholder="" required="">
</p>

<p>
    <label class="field" for="day">Day</label> <!-- Day Field -->
	    <select class = "reducedInput" name="day">
        <option value="Weekend">Weekend</option> <!-- Weekend Option -->
        <option value="Weekday">Weekday</option> <!-- Weekday Option -->
    </select>
    <!--<input class="reducedInput" name="day" type="text" placeholder="" required=""> -->
</p>

<p>
    <label class="field" for="time">Time</label> <!-- Time Field, Currently inputting as 24-hour as of May 7, 2014 -->
    <select id='hourSelect2' class='reducedInputTime' name='hour'>
    <?php
	for($i=1; $i < 13 ; $i++){
		  print "<option value='$i'>$i</option>";
	}
    ?>
    </select>
    <select id='minuteSelect2' class='reducedInputTime' name='minute'>
    <?php
	for($i=0; $i < 60 ; $i++){
		  if($i < 10)
			    print "<option value='$i'>0$i</option>";
		  else
			    print "<option value='$i'>$i</option>";
	}
    ?>
    </select>
    <select id='ampmSelect2' class='reducedInputTime' name='ampm'>
	<option value='am'>AM</option>
	<option value='pm'>PM</option>
    </select>
</p>


<!-- ID field -->
<p class="hidden">
    <label hidden for="id">ID</label>
    <input name="id" id='id2' type="text" placeholder="" hidden >
</p>

<p>
    <label class="field" for="direction">Direction</label> <!-- Direction Field -->
    <select id='direction2' name="direction">
        <option value="North">North</option><!-- North Option -->
        <option value="South">South</option><!-- South Option -->
        <option value="East">East</option><!-- East Option -->
        <option value="West">West</option><!-- West Option -->
    </select>
</p>
<p>
    <input class="reducedSize right yellow button" value="Add Stop" id = "submit2" name="submit" type="submit">
    <input class="reducedSize right blue button" value="Reset/Clear Form" name="reset" type="reset" onclick="resetForm()">
</p>
</form>
